/* 
 * File:   ipd_scaling.h
 * Author: dima
 *
 * Created on 22 февраля 2015 г., 15:49
 */

#ifndef IPD_SCALING_H
#define	IPD_SCALING_H
#include "ipd_img.h"
namespace ipd
{
    
class ipd_scaling
{
public:
    ipd_scaling(ipd_img &orig_img);
    ipd_scaling(const ipd_scaling& orig);
    virtual ~ipd_scaling();
    void bilinear_interpolation(ipd_img &img,float scale);
    void duplicating_pixels(ipd_img &img,int scale,bool increase=true);
private:
    ipd_img &orig_image; //The original image
    void decrease_img(ipd_img &img, int scale);//Decrease for duplicating_pixels
    void increase_img(ipd_img &img, int scale);//Increase for duplicating_pixels
};
}
#endif	/* IPD_SCALING_H */

